Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

217
Visualizações
Add waypoint on click at action button from infobox | Bing Maps API

So the problem is that infobox doesnt store all size of action buttons as in picture below too small size of infobox Other bigger problem is that I have no idea how to add function which allow to add waypoint to DirectionsManager on click on action button from infobox. code of pushpin and infobox below:

`var pin =  new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(53.42450655662612, 14.560102801018639),{
    title: 'Muzeum Narodowe w Szczecinie',
    description: 'Muzeum sztuki',
    icon: 'https://cdn-icons-png.flaticon.com/512/1009/1009870.png',
    iconSize: { width: 15, height: 15 },
});
map.entities.push(pin);
//Create an infobox at the center of the map but don't show it.
infobox = new Microsoft.Maps.Infobox(Microsoft.Maps.Location(53.42450655662612, 14.560102801018639), {
    visible: false,
});
//Assign the infobox to a map instance.
infobox.setMap(map);
//Store some metadata with the pushpin.
pin.metadata = {
    title: 'Muzeum Narodowe w Szczecinie',
    description: 'Muzeum historii lokalnej',
    icon: 'https://cdn-icons-png.flaticon.com/512/1009/1009870.png',
    iconSize: { width: 15, height: 15 },
    actions: [
        { label: 'Strona muzeum', eventHandler: function () { open('https://muzeum.szczecin.pl'); } },
        { label: 'Dodaj do trasy', eventHandler: function () {} }, //here is the action button which I would like to store function to add waypoint to directions manager on map.
    ]
};
//Add a click event handler to the pushpin.
Microsoft.Maps.Events.addHandler(pin, 'click', pushpinClicked);`//Code
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda